package com.wn.access.component;

import com.google.protobuf.DescriptorProtos;
import com.wn.access.config.RabbitMQConfig;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author yellow Docter
 * @date 2023 -03-02
 * @desc
 */
@Component
public class NotifyProvider {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendMsg(Object obj){

        rabbitTemplate.convertAndSend("exchange-topic","notify.topic.bank",obj);
    }
}
